﻿using SqlSugar;
using System.Collections.Generic;

namespace AuthorityManagement.Model
{
    /// <summary>
    /// 客户投诉报表目标数实体.
    /// </summary>
    [SugarTable("qms_busi_monthly_target_report", "客户投诉报表目标数")]
    public class QmsBusiMonthlyTargetReportEntity : CLDEntityBase
    {
        [SugarColumn(IsPrimaryKey = true, ColumnName = "F_Id", ColumnDescription = "F_Id")]
        //[SugarColumn(ColumnName = "F_Id", ColumnDescription = "F_Id")]
        public string Id { get; set; }
        /// <summary>
        /// 类型.
        /// </summary>
        [SugarColumn(ColumnName = "F_Type", ColumnDescription = "类型")]
        public string Type { get; set; }

        /// <summary>
        /// 年份.
        /// </summary>
        [SugarColumn(ColumnName = "F_Year", ColumnDescription = "年份")]
        public int Year { get; set; }

        /// <summary>
        /// 一月.
        /// </summary>
        [SugarColumn(ColumnName = "F_January", ColumnDescription = "一月")]
        public int January { get; set; }

        /// <summary>
        /// 二月.
        /// </summary>
        [SugarColumn(ColumnName = "F_February", ColumnDescription = "二月")]
        public int February { get; set; }

        /// <summary>
        /// 三月.
        /// </summary>
        [SugarColumn(ColumnName = "F_March", ColumnDescription = "三月")]
        public int March { get; set; }

        /// <summary>
        /// 四月.
        /// </summary>
        [SugarColumn(ColumnName = "F_April", ColumnDescription = "四月")]
        public int April { get; set; }

        /// <summary>
        /// 五月.
        /// </summary>
        [SugarColumn(ColumnName = "F_May", ColumnDescription = "五月")]
        public int May { get; set; }

        /// <summary>
        /// 六月.
        /// </summary>
        [SugarColumn(ColumnName = "F_June", ColumnDescription = "六月")]
        public int June { get; set; }

        /// <summary>
        /// 七月.
        /// </summary>
        [SugarColumn(ColumnName = "F_July", ColumnDescription = "七月")]
        public int July { get; set; }

        /// <summary>
        /// 八月.
        /// </summary>
        [SugarColumn(ColumnName = "F_August", ColumnDescription = "八月")]
        public int August { get; set; }

        /// <summary>
        /// 九月.
        /// </summary>
        [SugarColumn(ColumnName = "F_September", ColumnDescription = "九月")]
        public int September { get; set; }

        /// <summary>
        /// 十月.
        /// </summary>
        [SugarColumn(ColumnName = "F_October", ColumnDescription = "十月")]
        public int October { get; set; }

        /// <summary>
        /// 十一月.
        /// </summary>
        [SugarColumn(ColumnName = "F_November", ColumnDescription = "十一月")]
        public int November { get; set; }

        /// <summary>
        /// 十二月.
        /// </summary>
        [SugarColumn(ColumnName = "F_December", ColumnDescription = "十二月")]
        public int December { get; set; }

        /// <summary>
        /// 排序.
        /// </summary>
        [SugarColumn(ColumnName = "F_Sort", ColumnDescription = "排序")]
        public int Sort { get; set; }

        public int CalculateSum()
        {
            return January + February + March + April + May + June + July + August + September + October + November + December;
        }

        public List<int> DataList()
        {
            return new List<int>() { January, February, March, April, May, June, July, August, September, October, November, December };
        }
        [SugarColumn(ColumnName = "F_DeleteMark", ColumnDescription = "删除标识")]
        public string DeleteMark { get; set; }
    }
}
